package cn.bdqn.service.question.impl;



import cn.bdqn.dao.question.CategoryDao;
import cn.bdqn.pojo.question.Category;
import cn.bdqn.service.question.CategoryService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class CategoryServiceImpl extends ServiceImpl<CategoryDao, Category> implements CategoryService {
    @Autowired
    private CategoryDao categoryDao;
    @Override
    public List<Category> iSelectLev1() {
        return categoryDao.iSelectLev1();
    }

    @Override
    public List<Category> iSelectLev2() {
        return categoryDao.iSelectLev2();
    }

    @Override
    public List<Category> iSelectLev3() {
        return categoryDao.iSelectLev3();
    }

    @Override
    public int iSelectId(String name) {
        return categoryDao.iSelectId(name);
    }
}
